<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form >
        <div>
            <label for="">用户名</label>
            <input type="text" name="username">
        </div>
        <div>
            <label for="">密码</label>
            <input type="text" name="password">
        </div>
       <div>
        <label for="">性别</label>
        <select name="gender" >
            <option value="male">男</option>
            <option value="female">女</option>
        </select>
       </div>
       <button type="button">发送</button>
    </form>
    <script src="lib/jquery.3.6.0.js"></script>
    <script>
        $(function(){
            $("button").click(function(){
                const values=$("form").serialize();
                $.get("http://www.baidu.com?"+values,function(res){
                    logger.info(res);
                      
                })
            })
        })
    </script>
</body>
</html>